import request from '@/utils/request'

// 查询学校列表列表
export function listSchool(query) {
  return request({
    url: '/school/school/list',
    method: 'get',
    params: query
  })
}

// 查询学校列表详细
export function getSchool(sId) {
  return request({
    url: '/school/school/' + sId,
    method: 'get'
  })
}

// 新增学校列表
export function addSchool(data) {
  return request({
    url: '/school/school',
    method: 'post',
    data: data
  })
}

// 修改学校列表
export function updateSchool(data) {
  return request({
    url: '/school/school',
    method: 'put',
    data: data
  })
}

// 删除学校列表
export function delSchool(sId) {
  return request({
    url: '/school/school/' + sId,
    method: 'delete'
  })
}

export function listArea(query) {
  return request({
    url: '/system/baseArea/children/list',
    method: 'get',
    params: query
  })

}

export function basearea() {
  return request({
    url: '/system/baseArea/alllist',
    method: 'get'
  })
}
// 获取城市
export function getCity(parentId) {
  return request({
    url: '/system/baseArea/cityList/'+ parentId,
    method: 'get'
  })
}

//获取学校介绍
export function getSchoolIntroduce(sCode) {
  return request({
    url: '/scontent/scontent/' + sCode,
    method: 'get',

  })
}
